import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    language: 'English',
    middleContentHeight: 0,
    selectedItem: null,
    showPassword: false,
    checkedPassword: false,
    lastMethod: null,
    lastData: null
  },
  getters: {
  },
  mutations: {
    changeSelectedItem(state, payLoad) {
      state.selectedItem = payLoad
    },
    changeLanguage(state, payLoad) {
      state.language = payLoad
    },
    changeMiddleContentHeight(state, payLoad) {
      state.middleContentHeight = payLoad
    },

  },
  actions: {
  },
  modules: {
  }
})
